<?php
namespace app\common\business;

class BusiBase{

	//新增逻辑
	public function add($data){
		$data['status'] = config('status.mysql.normal');
		try{
			$this->model->save($data);
		}catch(\Exception $e){
			//记录日志
			return 0;
		}
		//返回主键ID
		return $this->model->id; 
	}
}